package com.runa.monitor.platinterface.extend.third.newester.vo;


import com.runa.monitor.platinterface.extend.third.newester.validator.Date;
import org.apache.pulsar.shade.io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * @Author: lyd
 * @Description:
 * @Date: 2021/11/3 10:21
 * @Version: 1.0
 */
public class TemperaturePanelDockingDetailVo {

    @NotBlank
    @Size(max = 15)
    @ApiModelProperty(value = "编号")
    private String meterSerialNo;

    @ApiModelProperty(value = "所属的集中器（网络设备）编号")
    @Size(max = 15)
    @NotBlank
    private String netEquSerialNo;

    @ApiModelProperty(value = "0：抄通 1：未抄通")
    @NotBlank
    @Size(max = 1)
    private String state;

    @ApiModelProperty(value = "失败原因")
    @Size(max = 20)
    private String reason;

    @NotBlank
    @Date(datePattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "任务时间：yyyy-MM-dd HH:mm:ss")
    private String planTime;

    @ApiModelProperty(value = "读取时间：yyyy-MM-dd HH:mm:ss")
    @Date(datePattern = "yyyy-MM-dd HH:mm:ss")
    private String readTime;

    @ApiModelProperty(value = "设备时间：yyyy-MM-dd HH:mm:ss")
    @Date(datePattern = "yyyy-MM-dd HH:mm:ss")
    private String equTime;

    @ApiModelProperty(value = "室内温度，单位：℃，最多整数3位，小数2位")
    @Digits(integer = 3, fraction = 2)
    private BigDecimal temperature;


    @ApiModelProperty(value = "状态码")
    @Size(max = 4)
    private String stateCode;

    public String getMeterSerialNo() {
        return meterSerialNo;
    }

    public void setMeterSerialNo(String meterSerialNo) {
        this.meterSerialNo = meterSerialNo;
    }

    public String getNetEquSerialNo() {
        return netEquSerialNo;
    }

    public void setNetEquSerialNo(String netEquSerialNo) {
        this.netEquSerialNo = netEquSerialNo;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getPlanTime() {
        return planTime;
    }

    public void setPlanTime(String planTime) {
        this.planTime = planTime;
    }

    public String getReadTime() {
        return readTime;
    }

    public void setReadTime(String readTime) {
        this.readTime = readTime;
    }

    public String getEquTime() {
        return equTime;
    }

    public void setEquTime(String equTime) {
        this.equTime = equTime;
    }

    public BigDecimal getTemperature() {
        return temperature;
    }

    public void setTemperature(BigDecimal temperature) {
        this.temperature = temperature;
    }

    public String getStateCode() {
        return stateCode;
    }

    public void setStateCode(String stateCode) {
        this.stateCode = stateCode;
    }
}
